<!DOCTYPE html>
<html>
<head>
    @include("/common/init.html"){}
</head>
<body>
@include("/common/commonunity_header.html",{title:'社区'}){}
@include("/common/commonTie.html",{title:'社区'}){}
<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
            @if(index! == 1){
            <div class="fly-panel">
                <div class="fly-panel-title fly-filter">
                    <a>置顶</a>
                    <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin"
                       style="color: #FF5722;">去签到</a>
                </div>
                <ul class="fly-list" id="flyList">
                    @for(item in postStickyList!){
                    <li>
                        <a href="${basePath}/my/u/${item.user_id!}" class="fly-avatar">
                            <img src="${item.avatar}" alt="${item.nickname}">
                        </a>
                        <h2>
                            <a class="layui-badge">${item.type_name!}</a>
                            <a href="${basePath}/jie/page/${item.id!}">${item.title!}</a>
                        </h2>
                        <div class="fly-list-info">
                            <a href="${basePath}/my/u/${item.user_id!}" link>
                                <cite><cite>${item.nickname!}</cite></cite>
                                @if(global.isNotNullOrEmpty(item.approve!)){
                                <i class="iconfont icon-renzheng" title="认证信息：${item.approve}"></i>
                                @}
                                <i class="layui-badge fly-badge-vip">${item.levelName!}</i>
                            </a>
                            <epoch:ago id="${item.id}_timeAgo" time="${item.c_time}"></epoch:ago>
                            <span class="fly-list-kiss layui-hide-xs" title="悬赏金币"><i class="iconfont icon-gold"></i>${item.price}</span>
                            <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
                            <span class="fly-list-nums">
					                <i class="iconfont icon-pinglun1" title="回答"></i> ${item.replayCount}
					              </span>
                        </div>
                        <div class="fly-list-badge">
                            <span class="layui-badge layui-bg-black">置顶</span>
                            @if(item.fine_post! == 1){
                            <span class="layui-badge layui-bg-red">精帖</span>
                            @}
                        </div>
                    </li>
                    @}
                </ul>
            </div>
            @}
            <div class="fly-panel" style="margin-bottom: 0;">
                <div class="fly-panel-title fly-filter">
                    <a href="${basePath}/column/all/index?curid=0" class="layui-this">综合</a>
                    <span class="fly-mid"></span>
                    <a href="${basePath}/column/all/index?curid=1">未结</a>
                    <span class="fly-mid"></span>
                    <a href="${basePath}/column/all/index?curid=2">已结</a>
                    <span class="fly-mid"></span>
                    <a href="${basePath}/column/all/index?curid=3">精华</a>
                </div>
            </div>
            <ul class="fly-list">
                @for(item in postList!){
                <li>
                    <a href="${basePath}/my/u/${item.user_id!}" class="fly-avatar">
                        <img src="${item.avatar}" alt="${item.nickname}">
                    </a>
                    <h2>
                        <a class="layui-badge">${item.type_name}</a>
                        <a href="${basePath}/jie/page/${item.id}">${item.title}</a>
                    </h2>
                    <div class="fly-list-info">
                        <a href="${basePath}/my/u/${item.user_id!}" link>
                            <cite>${item.nickname}</cite>
                            @if(global.isNotNullOrEmpty(item.approve!)){
                            <i class="iconfont icon-renzheng" title="认证信息：${item.approve}"></i>
                            @}
                            <i class="layui-badge fly-badge-vip">${item.levelName}</i>

                        </a>
                        <epoch:ago id="${item.id}_time" time="${item.c_time}"></epoch:ago>

                        <span class="fly-list-kiss layui-hide-xs" title="悬赏金币"><i class="iconfont icon-gold"></i> ${item.gold!'0'}</span>

                        @if(item.accept! == 1){
                        <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
                        @}
                        <span class="fly-list-nums">
			                <i class="iconfont icon-pinglun1" title="回答"></i> ${item.replayCount}
			              </span>
                    </div>
                    <div class="fly-list-badge">
                        @if(item.sticky_post! == 1){
                        <span class="layui-badge layui-bg-black">置顶</span>
                        @}
                        @if(item.fine_post! == 1){
                        <span class="layui-badge layui-bg-red">精帖</span>
                        @}
                    </div>
                </li>
                @}
            </ul>
            @if(index! == 1){
            <div style="text-align: center">
                <div class="laypage-main">
                    <a href="${basePath}/column/all/index" class="laypage-next">更多求解</a>
                </div>
            </div>
            @}else{
            <div style="text-align: center">
                <epoch:postpage type="${type!}" page="${page!}" count="${count!}"></epoch:postpage>
            </div>
            @}
        </div>
        <div class="layui-col-md4">
            <div class="fly-panel fly-signin">
                <div class="fly-panel-title">
                    签到
                    <i class="fly-mid"></i>
                    <a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a>
                    <i class="fly-mid"></i>
                    <a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜<span class="layui-badge-dot"></span></a>
                    <span class="fly-signin-days">已连续签到<cite>${userSign.sign_count!}</cite>天</span>
                </div>
                <div class="fly-panel-main fly-signin-main">
                    @if(signed! == 1){
                    <button class="layui-btn layui-btn-disabled">今日已签到</button>
                    <span>获得了<cite>${experience!}</cite>金币</span>
                    @}else{
                    <button class="layui-btn layui-btn-danger" id="LAY_signin">今日签到</button>
                    <span>可获得<cite>${experience!}</cite>金币</span>
                    @}
                </div>
            </div>
            <div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
                <h3 class="fly-panel-title">回贴周榜</h3>
                <dl>
                    @for(item in weekReplayList!){
                    <dd>
                        <a href="${basePath}/my/u/${item.replay_user_id!}">
                            <img src="${item.avatar!}"><cite>${item.nickname!}</cite><i>${item.count!}次回答</i>
                        </a>
                    </dd>
                    @}
                </dl>
            </div>
            <dl class="fly-panel fly-list-one">
                <dt class="fly-panel-title">本周热议</dt>
                @for(item in weekHeatReplayList!){
                <dd>
                    <a href="${basePath}/jie/page/${item.id}">${item.title!}</a>
                    <span><i class="iconfont icon-pinglun1"></i>${item.count!}</span>
                </dd>
                @}
            </dl>
        </div>
    </div>
</div>
<div class="layui-footer footer footer-index">
    <div class="layui-main">
        <p><a href="/">Epoch官方社区中心</a> © 2018</p>
        <p>
            |<a href="http://www.miitbeian.gov.cn" target="_blank"> AAAAAA-1</a>
        </p>
    </div>
</div>
<script>
    layui.cache.page = 'user';
    layui.config({
        version: "3.0.0"
        , base: '${baseStaticUrl}/mods/'
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cspan id='cnzz_stat_icon_30088308'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "w.cnzz.com/c.php%3Fid%3D30088308' type='text/javascript'%3E%3C/script%3E"));</script>

</body>